//
//  CustomTabButton.h
//  星期一
//
//  Created by 来定MAC on 15/7/21.
//  Copyright (c) 2015年 LD. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CustomTabButton;

typedef void(^SeletedBlock)(CustomTabButton *);

@protocol CustomTabButtonDelegate <NSObject>

- (void)customTabButton:(CustomTabButton *)tabBtn;

@end

@interface CustomTabButton : UIView

@property(nonatomic,copy)SeletedBlock selectedBlock;
@property(nonatomic,assign)id<CustomTabButtonDelegate> delegate;

+ (instancetype)customTabButton;//工厂方法

//传入参数 title 标题 image:图片 selected :选中时候的图片
- (void)title:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage;
//设置是否选中
- (void)showFromSelectedStatus:(BOOL) seleted;


@end
